Emmanuele Bassi [Fri, 18 Jun 2010 13:26:57 +0000 (14:26 +0100)]
application: Remove a variable and silence a compiler warning
Emmanuele Bassi [Fri, 18 Jun 2010 13:26:05 +0000 (14:26 +0100)]
application: Revert the leak plug
The &s in the signature of a GVariant means "pass me a pointer". To
avoid repeating the same mistake, use a const gchar* to declare the
key.
Emmanuele Bassi [Fri, 18 Jun 2010 11:06:39 +0000 (12:06 +0100)]
application: Plug a leak
The key returned by g_variant_iter_next() should be freed as well.
Also, clean up the coding style a bit.
Tristan Van Berkom [Fri, 18 Jun 2010 04:32:09 +0000 (00:32 -0400)]
Fixed some typos in new docs that are about GtkSizeRequest (not GtkSizeGroup)
Tristan Van Berkom [Fri, 18 Jun 2010 04:12:55 +0000 (00:12 -0400)]
Removed extendedlayoutexample.c (was a failed git mv --> testheightforwidth.c)
Tristan Van Berkom [Fri, 18 Jun 2010 04:11:26 +0000 (00:11 -0400)]
Mass api change from GtkExtendedLayout --> GtkSizeRequest
This commit makes a few massive changes to the extended layout
code:
a.) gtkextendedlayout.c --> gtksizerequest.c
b.) _is_height_for_width --> get_request_mode()
c.) get_desired_size(), get_desired_width(), get_desired_height() -->
get_size(), get_width(), get_height()
This is the first partial commit and only effects portions
of the tree that have already been merged in master (in order to
easily cherry pick this commit).
Conflicts:
gtk/Makefile.am
gtk/gtk.h
gtk/gtk.symbols
gtk/gtkextendedlayout.h
Matthias Clasen [Fri, 18 Jun 2010 01:09:50 +0000 (21:09 -0400)]
Bump version
Matthias Clasen [Thu, 17 Jun 2010 16:54:10 +0000 (12:54 -0400)]
Updates
Christian Persch [Thu, 17 Jun 2010 22:25:06 +0000 (00:25 +0200)]
application: Fix marshaler for GVariant gtype change
Use VARIANT instead of BOXED.
Stanislas Marquis [Thu, 17 Jun 2010 16:21:32 +0000 (18:21 +0200)]
[docs] Fix gtk_tree_sortable_set_sort_column_id()
@sortable => @sort_column_id
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Matthias Clasen [Thu, 17 Jun 2010 15:57:02 +0000 (11:57 -0400)]
Bump glib requirement
Javier Jardón [Thu, 17 Jun 2010 15:42:28 +0000 (17:42 +0200)]
[docs/gtk-faq] Close <para> tag
Emmanuele Bassi [Thu, 17 Jun 2010 14:41:12 +0000 (15:41 +0100)]
application: Allow sub-classes to override the Window creation
Sub-classes of GtkApplication might want to override the way an
application window is created - for instance, to hook into GtkBuilder
or to set up some basic UI or state.
A new GtkApplication::create_window() virtual function is added to the
GtkApplicationClass vtable, which returns the newly created GtkWindow.
The gtk_application_create_window() function calls the vfunc and adds
the returned window to the list of windows managed by the application
instance.
Calling gtk_application_add_window() will also set the default window,
if one is not already set.
This commit also removes a spurious g_object_ref_sink() on the newly
created GtkWindow.
Javier Jardón [Wed, 16 Jun 2010 18:37:54 +0000 (20:37 +0200)]
gail: do not use removed GTK_WIDGET_*SET macros
In the absence of new API to port to, left the code commented
with a /* FIXME */ state, for somebody with better gail knowledge
to fix.
Javier Jardón [Thu, 13 May 2010 18:07:17 +0000 (20:07 +0200)]
Deprecate GTK_OBJECT_FLAGS() and GtkObjectFlags enum
This macro will be moved to a private header in GTK+3.
https://bugzilla.gnome.org/show_bug.cgi?id=615666
Javier Jardón [Wed, 16 Jun 2010 18:18:39 +0000 (20:18 +0200)]
[gtk/gtkmenu] Emit an "attach-widget" event in gtk_menu_attach_to_widget()
Reported by ageorge@datasys.net in bug
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=621683
Javier Jardón [Wed, 16 Jun 2010 17:51:04 +0000 (19:51 +0200)]
[docs] Fix missing comma in gtkrc docs
Reported by Alexander Saprykin in bug
https://bugzilla.gnome.org/show_bug.cgi?id=621775
Stanislas Marquis [Wed, 16 Jun 2010 17:39:14 +0000 (19:39 +0200)]
[docs] Add 'Since: 2.16' tag to GtkEntryIconPosition
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Colin Walters [Wed, 16 Jun 2010 15:02:39 +0000 (11:02 -0400)]
[GtkApplication] Update for GApplication API changes
Move appid parameter first to match GApplication.
Carlos Garnacho [Tue, 15 Jun 2010 23:13:42 +0000 (01:13 +0200)]
GtkMenuShell: Store device on GTK+ device grab.
gtk_menu_shell_deactivate() needs to know the device to end the
GTK+ grab.
Carlos Garnacho [Tue, 15 Jun 2010 23:09:41 +0000 (01:09 +0200)]
GtkMenuShell: take a single device for grabs.
The other device will always be the associated device.
Jorge González [Wed, 16 Jun 2010 04:02:53 +0000 (06:02 +0200)]
Updated Spanish translation
Carlos Garnacho [Tue, 15 Jun 2010 21:24:34 +0000 (23:24 +0200)]
configure.ac: Fix build if no XInput libraries are available.
Carlos Garnacho [Fri, 4 Jun 2010 15:06:57 +0000 (17:06 +0200)]
gdk_event_get_device(): Fallback to core pointer/keyboard.
Events could be injected by third party code, which could not have a
GdkDevice set for newer GdkEvent types holding a GdkDevice. This
function will now fallback to core pointer/keyboard, plus issuing
a warning about the problem.
Carlos Garnacho [Tue, 8 Jun 2010 13:29:10 +0000 (15:29 +0200)]
GtkTextView: Scroll on the pointer doing DnD.
Carlos Garnacho [Tue, 8 Jun 2010 13:28:04 +0000 (15:28 +0200)]
GtkWidget: Undef GDK_DISABLE_DEPRECATED
This is needed for gdk_input_set_extension_events(), used by its GTK+
counterpart.
Carlos Garnacho [Mon, 7 Jun 2010 13:30:37 +0000 (15:30 +0200)]
GdkDeviceManagerXI2: Make focus events contain a GdkDevice.
Carlos Garnacho [Fri, 4 Jun 2010 14:17:41 +0000 (16:17 +0200)]
GdkDeviceManagerCore: protect against xevent->xany.window not being a GdkWindow.
Conceivably this GdkEventTranslator may still be asked for events such as
NoExpose or GraphicsExpose for pixmaps. It is not meant to translate such events,
but should at least behave with them.
Tristan Van Berkom [Tue, 15 Jun 2010 18:27:12 +0000 (14:27 -0400)]
Fixed negative allocations from gtk_box_size_allocate()
Fixed the allocation loop to check if it was allocated at least
enough space to hold its visible children before going and distributing
extra space among children. Fixes bgo #617444.
Carlos Garnacho [Tue, 15 Jun 2010 17:06:51 +0000 (19:06 +0200)]
Make GTK+ device grabs take precedence over GTK+ grabs
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=620440 (Reported by
Marek Kašík), where the print dialog modality would impair the pop-up
window from getting events. Device GTK+ grabs gain in specificness.
Javier Jardón [Tue, 15 Jun 2010 15:16:43 +0000 (17:16 +0200)]
Use a GPid on gdk_spawn_on_screen[_with_pipes]. Take 2
Really fixes
https://bugzilla.gnome.org/show_bug.cgi?id=602289
Javier Jardón [Tue, 15 Jun 2010 13:27:24 +0000 (15:27 +0200)]
[docs] Make GtkUIManager signal documentation more consistent
Reported by Alexander Saprykin in bug
https://bugzilla.gnome.org/show_bug.cgi?id=621631
Matthias Clasen [Tue, 15 Jun 2010 05:23:30 +0000 (01:23 -0400)]
Docmentation improvements
Don't mention removed _defaults functions in the docs, also try
to clarify the situation around fill and expand defaults.
Thomas Wood [Tue, 15 Jun 2010 04:00:40 +0000 (00:00 -0400)]
GtkCalendar: some functions always return TRUE, so change them to void
Certain functions for GtkCalendar always return the same value. Therefore
they do not actually need to return a value at all.
Bug #621136.
Matthias Clasen [Tue, 15 Jun 2010 03:46:46 +0000 (23:46 -0400)]
Add a variant of gtk_icon_theme_load_symbolic that takes a style
As proposed by Owen in bug 621578 to reduce code duplication.
Matthias Clasen [Thu, 10 Jun 2010 12:38:11 +0000 (08:38 -0400)]
Remove some useless defines
Martin Schlemmer [Mon, 14 Jun 2010 18:47:57 +0000 (20:47 +0200)]
win32: Avoid type warning for offscreen windows in xp theme
See bug #598299
Colin Walters [Tue, 8 Jun 2010 22:06:03 +0000 (18:06 -0400)]
[GtkApplication] Update for GApplication API changes
We now implement "quit" and "action" signals here.
https://bugzilla.gnome.org/show_bug.cgi?id=621003
Paolo Borelli [Mon, 14 Jun 2010 17:04:47 +0000 (19:04 +0200)]
Annotate the methods to get TextBuffer iters
Claudio Saavedra [Mon, 14 Jun 2010 14:38:58 +0000 (17:38 +0300)]
Fix typo in docs for GtkFileChooser
Reported by Martin Olsson in
https://bugzilla.gnome.org/show_bug.cgi?id=621479
Kjartan Maraas [Sun, 13 Jun 2010 21:18:03 +0000 (23:18 +0200)]
Updated Norwegian bokmål translation
Fran Diéguez [Sun, 13 Jun 2010 16:06:27 +0000 (18:06 +0200)]
Updated Galician translations
Fran Diéguez [Sat, 12 Jun 2010 16:57:37 +0000 (18:57 +0200)]
Updated Galician translations
Paolo Borelli [Sat, 12 Jun 2010 10:54:04 +0000 (12:54 +0200)]
Fix the build broken in previous commit
Martin Schlemmer [Fri, 11 Jun 2010 18:20:07 +0000 (20:20 +0200)]
win32: Fix the xp there to correctly clip when drawing
This makes the xp theme work again, and also enables it.
John (J5) Palmieri [Thu, 10 Jun 2010 18:53:12 +0000 (14:53 -0400)]
annotate gtk_color_selection_get_current_color color param as out
Cosimo Cecchi [Thu, 10 Jun 2010 13:52:45 +0000 (15:52 +0200)]
Add a missing accessor for GdkDragContext->source_window.
Michael Natterer [Thu, 10 Jun 2010 11:15:12 +0000 (13:15 +0200)]
gdk: fix typo in the docs for gdk_drag_context_get_selected_action()
(cherry picked from commit
e494ec1d61e627db44a6bcc678ee8b37c8eb038c)
Javier Jardón [Sun, 6 Jun 2010 13:40:46 +0000 (15:40 +0200)]
Use a GPid on gdk_spawn_on_screen[_with_pipes] instead a gint
Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=602289
Javier Jardón [Wed, 9 Jun 2010 17:12:27 +0000 (19:12 +0200)]
constify gtk_init_with_args()'s GOptionEntry argument
Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=621111
Stanislas Marquis [Thu, 10 Jun 2010 00:17:23 +0000 (02:17 +0200)]
[docs] GdkPixmap fix: gdk_pixmap_draw() does not exist.
Using gdk_draw_drawable() instead.
Javier Jardón [Wed, 9 Jun 2010 18:01:53 +0000 (20:01 +0200)]
[docs] Saturation is the intensity of the color, not the "deepness"
Reported by Seán de Búrca in bug
https://bugzilla.gnome.org/show_bug.cgi?id=466475
Cosimo Cecchi [Wed, 9 Jun 2010 11:02:46 +0000 (13:02 +0200)]
Add an accessor for GtkViewport->view_window (#621081).
Tor Lillqvist [Wed, 9 Jun 2010 10:54:43 +0000 (13:54 +0300)]
One more s/2.0/3.0
Tor Lillqvist [Wed, 9 Jun 2010 09:32:52 +0000 (12:32 +0300)]
Use correct libgdkincludedir in gdk/win32 too
Thanks to Hib Eris.
Richard Hughes [Wed, 9 Jun 2010 08:29:50 +0000 (09:29 +0100)]
Fix distcheck by removing references to gtk/gtkprogress.c
Tor Lillqvist [Wed, 9 Jun 2010 08:10:22 +0000 (11:10 +0300)]
Fix build breakage on non-Unix
gdesktopappinfo.h does is in gio-unix headers, so can compile
testapplication only on Unix.
Tor Lillqvist [Wed, 9 Jun 2010 07:52:11 +0000 (10:52 +0300)]
Fix build breakage on non-X11
AM_CONDITIONALs need to be seen in all code paths. The one for
XINPUT_NONE was only in the X11 if branch. But as that Automake
confitional wasn't used in any Makefile.am anyway, just drop the
AM_CONDITIONAL.
Javier Jardón [Wed, 9 Jun 2010 04:33:10 +0000 (06:33 +0200)]
[docs] Added some missing documentation to GdkDnd
The docs was removed by error in commit
9399114802846a3878ff3f8d818bd18664285cf4
Matthias Clasen [Wed, 9 Jun 2010 04:29:55 +0000 (00:29 -0400)]
Get rid of GtkProgress
The entire api was deprecated since 2.0. This patch detangles
GtkProgress from GtkProgressBar and moves all the pieces into
GtkProgressBar that are required for non-deprecated progressbar
functionality.
Bug #620618
Matthias Clasen [Wed, 9 Jun 2010 02:04:39 +0000 (22:04 -0400)]
Bump version
Javier Jardón [Wed, 9 Jun 2010 01:01:03 +0000 (03:01 +0200)]
[docs] Added some GtkIconView missing documentation
Document GtkIconViewDropPosition and GtkIconViewForeachFunc.
The docs was removed by error in commit
e17b9f282fb6cfb413de598350e273a68031994b
Javier Jardón [Wed, 9 Jun 2010 00:58:11 +0000 (02:58 +0200)]
[docs] .gitignore some template files
Matthias Clasen [Wed, 9 Jun 2010 01:10:15 +0000 (21:10 -0400)]
Remove one more gtk-doc template
Matthias Clasen [Tue, 8 Jun 2010 23:46:13 +0000 (19:46 -0400)]
Don't call update-po in make dist
This is causing the bulk of the conflicts I have during distcheck,
and is not really necessary.
Matthias Clasen [Tue, 8 Jun 2010 23:44:56 +0000 (19:44 -0400)]
Get rid of templates that gtk-doc touches during distcheck
In an attempt to make distcheck not touch any files under source
control.
Steve Frécinaux [Tue, 8 Jun 2010 18:32:12 +0000 (20:32 +0200)]
[gtkwidget] Add type annotations for the event signals.
Matthias Clasen [Tue, 8 Jun 2010 19:21:18 +0000 (15:21 -0400)]
Move docs inline
Matthias Clasen [Tue, 8 Jun 2010 19:15:59 +0000 (15:15 -0400)]
Distcheck fixes
Matthias Clasen [Tue, 8 Jun 2010 16:29:55 +0000 (12:29 -0400)]
Fix !srcdir build
Michael Natterer [Tue, 8 Jun 2010 19:29:52 +0000 (21:29 +0200)]
gail: don't use removed GtkTooltips API
In the absence of new API to port to, left the code in a useless
if(FALSE /* FIXME */) state, for somebody with better gail knowledge
to fix.
Seán de Búrca [Tue, 8 Jun 2010 18:34:25 +0000 (12:34 -0600)]
Updated Irish translation
Federico Mena Quintero [Tue, 8 Jun 2010 17:09:48 +0000 (12:09 -0500)]
bgo#608537 - Make the file chooser's sort arrows consistent with the HIG
... Although I think the HIG gets things backwards anyway.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
Matthias Clasen [Tue, 8 Jun 2010 16:03:09 +0000 (12:03 -0400)]
Updates
Matthias Clasen [Tue, 8 Jun 2010 14:27:53 +0000 (10:27 -0400)]
Bump the gobject-introspection requires
Richard Hughes [Tue, 8 Jun 2010 13:07:12 +0000 (14:07 +0100)]
Get one step closer to fixing the gobject-introspection compile failure
Matthias Clasen [Tue, 8 Jun 2010 13:03:07 +0000 (09:03 -0400)]
Use gtk_action_group_get_action when looking up actions
...instead of open-coding it. Pointed out by Christian Persch
in bug 620960
Matthias Clasen [Tue, 8 Jun 2010 12:58:16 +0000 (08:58 -0400)]
Remove debug spew
Matthias Clasen [Tue, 8 Jun 2010 12:28:01 +0000 (08:28 -0400)]
Update to GApplication api changes
John (J5) Palmieri [Mon, 7 Jun 2010 22:20:36 +0000 (18:20 -0400)]
add transfer-none to return value of gtk_widget_get_window
Steve Frécinaux [Mon, 7 Jun 2010 21:47:14 +0000 (23:47 +0200)]
[gdkevents] Add annotations for GdkEvent getters.
Steve Frécinaux [Mon, 7 Jun 2010 21:45:43 +0000 (23:45 +0200)]
[gtktextbuffer] Annotate gtk_text_buffer_create_mark()
Add (transfer none) to the return value of gtk_text_buffer_create_mark(),
as the documentation clearly states the caller doesn't have ownership of
the returned value.
Matthias Clasen [Mon, 7 Jun 2010 20:44:58 +0000 (16:44 -0400)]
Add GtkApplication
This is a work in progress to stub out an application class. The
primary goal is to provide a mechanism for applications to export
GtkActions, and there is a standard "Quit" action.
This is based on GApplication.
Future work:
* Add a way to say "This is my application menubar", which gets
put into all toplevel windows on non-OS-X, and into the top
on OS X.
* Support session management.
* Support application settings.
https://bugzilla.gnome.org/show_bug.cgi?id=127958
John (J5) Palmieri [Mon, 7 Jun 2010 20:15:39 +0000 (16:15 -0400)]
annotate allow-none for gtk_image_menu_item_new_from_stock accel_group param
John (J5) Palmieri [Mon, 7 Jun 2010 17:15:27 +0000 (13:15 -0400)]
add allow-none annotation to gtk_clipboard_set_can_store's targets parameter
Marek Kasik [Mon, 7 Jun 2010 12:52:38 +0000 (14:52 +0200)]
Return error instead of showing an error dialog when printing
Remove message dialogs showing an error when printing. Return
GTK_PRINT_OPERATION_RESULT_ERROR and set error in such a case.
Also return GTK_PRINT_OPERATION_RESULT_CANCEL when cancelled.
Do it for synchronous and asynchronous cases (#549127).
Tomeu Vizoso [Wed, 2 Jun 2010 16:17:16 +0000 (18:17 +0200)]
Split gdk x11 funcs to their own typelib
https://bugzilla.gnome.org/show_bug.cgi?id=617863
Sven Herzberg [Thu, 3 Jun 2010 12:00:34 +0000 (14:00 +0200)]
drop the draw_string() function from GtkStyle
Reviewed by Michael Natterer.
* gtk/gtkstyle.c,
* gtk/gtkstyle.h: gdk_draw_string() has been deprecated and removed
already. There's no one left who should be using this function
(found this when porting sapwood to GTK+ 3.0)
* modules/engines/pixbuf/pixbuf-draw.c: don't implement this unused
function
Matthias Clasen [Mon, 7 Jun 2010 10:16:21 +0000 (06:16 -0400)]
Fix up abi checking
The abicheck script was hardcoding assumptions about XI2 being used,
making it fail on e.g. RHEL5.
Javier Jardón [Mon, 7 Jun 2010 02:39:21 +0000 (04:39 +0200)]
Remove some GTK_DISABLE_DEPRECATED and ENABLE_BROKEN guards
Javier Jardón [Mon, 7 Jun 2010 02:31:56 +0000 (04:31 +0200)]
Remove gdkx_colormap_get() deprecated function
Matthias Clasen [Sun, 6 Jun 2010 23:39:12 +0000 (19:39 -0400)]
Make gdk build against old X headers
The XI.h in RHEL5 is missing some defines that are used
in the new device code.
Javier Jardón [Tue, 25 May 2010 18:38:43 +0000 (20:38 +0200)]
Remove deprecatedd code from GdkColor
https://bugzilla.gnome.org/show_bug.cgi?id=619649
Kristjan Schmidt [Sun, 6 Jun 2010 19:22:40 +0000 (21:22 +0200)]
Updated Esperanto translation
Kristjan Schmidt [Sun, 6 Jun 2010 19:16:30 +0000 (21:16 +0200)]
Updated Esperanto translation
Kristjan Schmidt [Sat, 5 Jun 2010 10:19:09 +0000 (12:19 +0200)]
Updated Esperanto translation
Javier Jardón [Sat, 5 Jun 2010 02:37:35 +0000 (04:37 +0200)]
Bump Glib required version as is needed by g_source_set_name()
The use of this new api was added in
95bc0f540555c15561ae1ddd2387ea5157591fda
Christian Dywan [Sat, 5 Jun 2010 00:03:19 +0000 (20:03 -0400)]
Make progressbars render progress again
This was broken during some earlier deprecation cleanup.
Bug 620509.
Matthias Clasen [Fri, 4 Jun 2010 23:40:43 +0000 (19:40 -0400)]
Remove remaining single-include guards
Matthias Clasen [Fri, 4 Jun 2010 23:28:01 +0000 (19:28 -0400)]
Don't install private headers